package com.company.huisuo.biz.fragment

import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.company.huisuo.base.BaseFragment
import com.company.huisuo.biz.adapter.FeedBackAdapter
import com.company.huisuo.biz.bean.ArtistBean
import com.company.huisuo.databinding.FragmentFeedbackArtistBinding

/**
 * 反馈-艺人
 */
class FeedBackArtistFragment : BaseFragment<FragmentFeedbackArtistBinding>() {

    private val mAdapter by lazy {
        FeedBackAdapter()
    }

    companion object {
        fun newInstance(): FeedBackArtistFragment {
            return FeedBackArtistFragment()
        }
    }

    override fun initView() {
        mBinding?.rcvList?.apply {
            layoutManager = LinearLayoutManager(requireActivity(), RecyclerView.HORIZONTAL, false)
            adapter = mAdapter
        }
    }

    override fun initData() {
        mAdapter.submitList(ArtistBean.LIST)
    }
}